<?php

namespace App\Http\Requests\Admin\Store;

use App\Http\Requests\ApiRequest;

class ProductImageDestroyRequest extends ApiRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'product_image_ids' => 'nullable|array'
        ];
    }

//    public function messages()
//    {
//        return [
//            'product_image_ids.*' => '商品缩略图的ID必须是数组'
//        ];
//    }
}
